package com.feng.nuike.huawei;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**
 * @author feng
 * @decrition
 * @date 2022/2/170:09
 */
public class HJ16 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] split = s.split(" ");
        int money = Integer.valueOf(split[0]);
        int hang = Integer.valueOf(split[1]);
        int[][] array = new int[hang][3];
        for (int i = 0; i < hang; i++) {
            String line = scanner.nextLine();
            String[] vpq = line.split(" ");
            array[i][0] = Integer.valueOf(vpq[0]);
            array[i][1] = Integer.valueOf(vpq[1]);
            array[i][2] = Integer.valueOf(vpq[2]);
        }
        
    }

}
